package com.regex.web.service.sys.impl;
import java.util.List;

import com.regex.web.dao.sys.IUserRoleDao;
import com.regex.web.entity.sys.UserRoleDTO;
import com.regex.web.service.sys.IUserRoleService;
import com.regex.web.utils.Assist;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserRoleServiceImpl implements IUserRoleService{
    @Autowired
    private IUserRoleDao iUserRoleDao;
    @Override
    public long getUserRoleDTORowCount(Assist assist){
        return iUserRoleDao.getUserRoleDTORowCount(assist);
    }
    @Override
    public List<UserRoleDTO> selectUserRoleDTO(Assist assist){
        return iUserRoleDao.selectUserRoleDTO(assist);
    }
    @Override
    public UserRoleDTO selectUserRoleDTOByObj(UserRoleDTO obj){
        return iUserRoleDao.selectUserRoleDTOByObj(obj);
    }
    @Override
    public UserRoleDTO selectUserRoleDTOById(Long id){
        return iUserRoleDao.selectUserRoleDTOById(id);
    }
    @Override
    public int insertUserRoleDTO(UserRoleDTO value){
        return iUserRoleDao.insertUserRoleDTO(value);
    }
    @Override
    public int insertNonEmptyUserRoleDTO(UserRoleDTO value){
        return iUserRoleDao.insertNonEmptyUserRoleDTO(value);
    }
    @Override
    public int insertUserRoleDTOByBatch(List<UserRoleDTO> value){
        return iUserRoleDao.insertUserRoleDTOByBatch(value);
    }
    @Override
    public int deleteUserRoleDTOById(Long id){
        return iUserRoleDao.deleteUserRoleDTOById(id);
    }
    @Override
    public int deleteUserRoleDTO(Assist assist){
        return iUserRoleDao.deleteUserRoleDTO(assist);
    }
    @Override
    public int updateUserRoleDTOById(UserRoleDTO enti){
        return iUserRoleDao.updateUserRoleDTOById(enti);
    }
    @Override
    public int updateUserRoleDTO(UserRoleDTO value, Assist assist){
        return iUserRoleDao.updateUserRoleDTO(value,assist);
    }
    @Override
    public int updateNonEmptyUserRoleDTOById(UserRoleDTO enti){
        return iUserRoleDao.updateNonEmptyUserRoleDTOById(enti);
    }
    @Override
    public int updateNonEmptyUserRoleDTO(UserRoleDTO value, Assist assist){
        return iUserRoleDao.updateNonEmptyUserRoleDTO(value,assist);
    }

    public IUserRoleDao getIUserRoleDao() {
        return this.iUserRoleDao;
    }

    public void setIUserRoleDao(IUserRoleDao iUserRoleDao) {
        this.iUserRoleDao = iUserRoleDao;
    }

}